#ifndef BOMFILESELECT_H
#define BOMFILESELECT_H

#include <QDialog>
#include <QStringList>
#include <QListWidgetItem>

namespace Ui {
class BomFileSelect;
}

class BomFileSelect : public QDialog
{
    Q_OBJECT

public:
    explicit BomFileSelect(QWidget *parent = nullptr);
    ~BomFileSelect();

    void f_setList(QStringList list);

    inline QString f_getFileName() {return m_name;}

private slots:
    void on_listWidget_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);

    void on_commit_push_button_clicked();

    void on_cancel_push_button_clicked();

private:
    Ui::BomFileSelect *ui;

    QString m_name = "";
};

#endif // BOMFILESELECT_H
